package com.ccsoft.static_package_mult_ds.controller;

import com.ccsoft.static_package_mult_ds.service.TestMultTransactionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chanchaw
 * @create 2022-09-17 12:31
 */
@CrossOrigin
@RestController
@RequestMapping("/trans")
public class TestMultTransactionController {
    @Autowired
    private TestMultTransactionService service;

    @GetMapping("/test")
    public String test(){
        service.saveMultDS();
        return "执行成功";
    }
}
